package com.aloha.springframework.test.aop;

import com.aloha.springframework.aop.MethodBeforeAdvice;

import java.lang.reflect.Method;
import java.util.Arrays;

/**
 * @author DaiZhiHeng
 * @date 2023/7/7 13:59
 */
public class BeforeAdviceImpl implements MethodBeforeAdvice {

    @Override
    public void before(Method method, Object[] args, Object target) throws Throwable {
        System.out.println("(before)被代理的方法名：" + method.getName() + " <=== 传入的参数是" + Arrays.toString(args));
    }
}
